package cn.com.miaoto.Controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by guo.chen on 2018/12/11.
 */
@Controller
@RequestMapping("/")
public class PageController {

    @RequestMapping("/")
    public String login(){
        return "login";
    }

    @RequestMapping("/login")
    public String login2(){
        return "login";
    }

    @RequestMapping("pageto/companyList")
    public String companyList(){
        return "custom/company";
    }

    @RequestMapping("pageto/customList")
    public String customList(){
        return "custom/custom";
    }

    @RequestMapping("pageto/customTab")
    public String customTab(){
        return "custom/customTab";
    }

    @RequestMapping("pageto/visitList")
    public String visitList(){
        return "custom/visit";
    }

    @RequestMapping("pageto/project")
    public String project(){
        return "custom/project";
    }

    @RequestMapping("pageto/visitTab")
    public String visitTab(){
        return "custom/visitTab";
    }

    @RequestMapping("pageto/tousermanage")
    public String tousermanage() {
        return "power/user";
    }

    //跳转到修改密码页面
    @RequestMapping("pageto/toUpdatePassword")
    public String toUpdatePassword() {
        return "power/updatePassword";
    }
}
